package com.jasonjan.jiance.module.search.main;

import android.content.Intent;
import android.os.Bundle;

import com.jasonjan.jiance.R;
import com.jasonjan.jiance.global.InitApp;
import com.jasonjan.jiance.module.base.BaseActivity;
import com.jasonjan.jiance.module.search.listview.SearchLessonView;
import com.r0adkll.slidr.model.SlidrInterface;

public class SearchLessonActivity extends BaseActivity {

    public static void launch(String flag) {
        InitApp.AppContext.startActivity(new Intent(InitApp.AppContext, SearchLessonActivity.class)
                .putExtra("flag",flag)
                .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_search_lesson);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        setTitle("已预约课程");

        getSupportFragmentManager().beginTransaction()
                .replace(R.id.container, SearchLessonView.newInstance("lesson"))
                .commit();
    }

    public SlidrInterface getSlidrInterface() {
        return slidrInterface;
    }

}
